import request from "@/utils/request";

// 获取生产周期配置分类列表
export const categoryList = data => {
  return request({
    url: "/mall/tenant/factory/info/categoryList",
    method: "get",
    params: data
  });
};

// 获取分类生产周期
export const getCategoryCycleTree = data => {
  return request({
    url: `/mall/tenant/factory/info/getCategoryCycleTree/${data.categoryId}`,
    method: "get",
    params: { factoryId: data.factoryId }
  });
};

// 修改分类生产周期
export const updateCategoryCycle = data => {
  return request({
    url: "/mall/tenant/factory/info/updateCategoryCycle",
    method: "post",
    data
  });
};

// 获取基础服务配置信息
export const getServiceConfigInfo = data => {
  return request({
    url: "/mall/tenant/factory/info/getServiceConfigInfo",
    method: "post",
    data
  });
};

// 修改基础服务配置信息
export const updateServiceConfig = data => {
  return request({
    url: "/mall/tenant/factory/info/updateServiceConfig",
    method: "post",
    data
  });
};
